package com.dragon.codefx.constant;

import lombok.Getter;

import java.util.ArrayList;
import java.util.List;

/**
 * 默认忽略字段
 * @author lsc
 * @since 2024/12/1 17:08
 **/
@Getter
public enum IgnoreField {
    CREATE_TIME("创建时间", "create_time"),
    UPDATE_TIME("更新时间", "update_time"),
    CREATE_USER("创建人", "create_by"),
    UPDATE_USER("更新人", "update_by"),
    ;
    private final String label;
    private final String value;

    IgnoreField(String label, String value) {
        this.label = label;
        this.value = value;
    }

    public static List<String> getValues() {
        List<String> result = new ArrayList<>();
        for (IgnoreField field : IgnoreField.values()) {
            result.add(field.getValue());
        }
        return result;
    }
}
